package com.lovo.service;

import com.github.pagehelper.PageInfo;
import com.lovo.model.Role;

import java.util.List;

public interface RoleService{


    PageInfo<Role> listByPage(int pageNo, int pageSize, Role role);

    boolean addRole(Role r);

    boolean deleteRole(int r);

    boolean updateRole(Role r);

    boolean hasAuthority(int roleId, Integer[] authorityIds);

    int[] getAuthorityIds(int roleId);

    List<Role> getAllRoles();
}
